package com.linkivr.util;

import org.apache.log4j.Logger;

public class GL {
	private static Logger logger = Logger.getLogger(GL.class);
	
	public static void info(Object message) {
		logger.info(message);
	}

	public static void error(Object message) {
		logger.error(message);
	}

	public static void debug(Object message) {
		logger.debug(message);
	}

	public static void fatal(Object message) {
		logger.fatal(message);
	}
	
	public static void logException(Exception e)
	{
		logger.info(e.getMessage());
		StackTraceElement[] trace = e.getStackTrace();		
        for (int i=0; i < trace.length; i++)
        	logger.debug("\tat " + trace[i]);
	}
}
